<!--{block return}--> 
<script type="text/javascript" src="http://static.connect.renren.com/js/v1.0/FeatureLoader.jsp"></script>
<script type="text/javascript">
function rr_logout() {
	XN.Connect.logout(function() {
    	//window.location =  'member.php?mod=logging&action=logout&formhash={FORMHASH}';
		document.formx1.action='member.php?mod=logging&action=logout&formhash={FORMHASH}';
		document.formx1.submit.click();
    });
}

XN_RequireFeatures(["EXNML"], function() {
  XN.Main.init("{$_G['cache'][plugin][renren]['api_key']}", "xd_receiver.html"<!--{if empty($_G['uid'])}-->,{"ifUserConnected":"renren.php?m=login"}<!--{/if}-->);
});
</script>

<!--{/block}-->